<template>
	<view>
		<Header type="back" title="其他时间" />
		<view class="bg-f8ff w-100 ab left0 bottom0 rounded-right" :class="'top'+toprpx" >
			<scroll-view class="scroll-view_H top50 uni-scroll" scroll-y="true">
				<view v-for="(item,index) in list" :key="index" class="w-100 px-2-6 mb-2-4">
					<SelectTime :item="item" :cur="is_cur_id" type="select"></SelectTime>
				</view>
				<view class="w-100 h100"></view>
			</scroll-view>
		</view>
	</view>
</template>

<script>
	import Header from "../../../components/header.vue"
	import SelectTime from "./components/select-time.vue"
	export default {
		components: {
			Header,
			SelectTime
		},
		data() {
			return {
				is_cur_id:0,
				toprpx: 220,
				list: []
			}
		},
		onLoad(val) {
			this.is_cur_id = val.id || 0
		},
		created() {
			this.list = uni.getStorageSync("select_time") || []
			// this.is_cur_id = this.list[0]?.id
		},
		mounted() {
			this.toprpx = uni.getStorageSync("toprpx")
		},
	}
</script>

<style lang="scss" scoped>
	.scroll-view_H {
		position: absolute;
		left: 0;
		bottom: 0;
		right: 0;
		z-index: 9;
	}
</style>
